<?php
	$ID=$_GET['ID'];
	$sql="select * from lienhe where lhID=".$ID;
	$res=mysql_query($sql);
	$r=mysql_fetch_array($res);
?>
<div align=center width="100%">
<p class="titleAE">Edit contact</p>
<br />	
<form name="f" method='post' action="include/contactProc.php?act=edit&ID=<?php echo $ID;?>" >
<table>
	<tr>
		<td align="right">Tên</td>
		<td><input type="text" name="name" value="<?php echo $r['lhName']; ?>" /></td>
	</tr>
	<tr>
		<td align="right">Yahoo</td>
		<td><input type="text" name="yahoo" value="<?php echo $r['lhYahoo'];?>" /></td>
	</tr>
	<tr>
		<td align="right">Skype</td>
		<td><input type="text" name="skype" value="<?php echo $r['lhSkype'];?>" /></td>
	</tr>
	<tr>
		<td align="right">Số điện thoại</td>
		<td><input type="text" name="sdt" value="<?php echo $r['lhSDT'];?>" /></td>
	</tr>
	<tr>
		<td align="right">Hiển thị</td>
		<td><input type="checkbox" name="status" <?php if($r['lhStatus']==1) echo 'checked'; ?> /></td>
	</tr>
	<tr>
		<td></td>
		<td><button type="submit">Chấp nhận</button><input type="button" onClick="back();" value="Trở lại" /></td>
	</tr>
</table>
</form>
</div>